package com.zh.domain.dto.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "AddTaskRequest", description = "新增任务请求参数")
public class AddTaskRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("项目id 必须")
    public Integer proId;
    @ApiModelProperty("里程碑id 可为空,代表无里程碑关联")
    private Integer mileId;
    @ApiModelProperty("迭代id可为空,代表项目无迭代")
    private Integer iterId;
    @ApiModelProperty("需求id,代表无需求关联")
    private Integer reqId;
    @ApiModelProperty("任务负责人id")
    private Integer ownerId;
    @ApiModelProperty("任务开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty("任务结束时间")
    private LocalDateTime endTime;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("优先级0 P0, 1 P1, 2 P2")
    private Integer priority;
}
